package com.codefish.framework.spring.beans.exception;

import com.codefish.framework.spring.beans.factory.support.BeanDefinition;

/**
 * 创建bean时出现异常则抛出
 *
 * @author <a href='https://gitee.com/hzf2281'>codefish</a>
 * @version 1.0.0
 * @since 2022/09/29 下午 01:52
 */
public class InstantiateBeanException extends BeansException {
    public InstantiateBeanException(String beanName, BeanDefinition bd) {
        super(String.format("创建bean失败,beanName:'%s',beanClass:'%s'", beanName, bd.getBeanClass().getName()));
    }

}
